package com.wk.code.wkserver.controller.app;

import com.wk.code.wkserver.response.admin.TechTypeResponse;
import com.wk.code.wkserver.response.result.R;
import com.wk.code.wkserver.service.ITechTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.AllArgsConstructor;

import java.util.List;

/**
 * <p>
 * 技术类别表 前端控制器
 * </p>
 *
 * @author wq
 * @since 2021-08-15
 */
@RestController
@RequestMapping("tech/type")
@AllArgsConstructor
@Api(tags = "app-前台技术类型管理")
public class TechTypeController {

    final ITechTypeService techTypeService;

    /**
     * 下拉技术类型
     *
     * @return R
     */
    @ApiOperation(value = "下拉技术类型")
    @GetMapping("/listPull")
    public R<List<TechTypeResponse>> listPull() {
        return R.success(techTypeService.listPull());
    }
}
